import LoadingBox from '@/components/box/LoadingBox'
import styles from './btn.module.scss'
const Test = defineComponent({
  setup() {
    const time = ref(0)
    const loading = ref(true)

    const add = () => {
      time.value++
    }
    // const { loading } = useRequest(() => {})
    setTimeout(() => {
      loading.value = false
    }, 3000)
    // return () => <div onClick={add}>121212{time.value}</div>
    return () => (
      <LoadingBox
        loadingText='初始化中...'
        class={styles.container}
        isShowContentInLoading={true}
        loading={loading.value}></LoadingBox>
    )
  },
})
export default Test
